<template>
  <div class="">
    <h3>{{ title }}</h3>
    <!-- {{ con }} -->
    <div v-html="con" class="con"></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      // id: this.$route.query.aa,
      id: this.$route.params.id,
      title: "",
      con: "",
    };
  },
  mounted() {
    this.$axios.get("/api/goods/getdesc/" + this.id).then((res) => {
      console.log(res);
      this.title = res.data.message[0].title;
      this.con = res.data.message[0].content;
    });
  },
  methods: {},
  components: {},
};
</script>

<style lang="scss">
.con {
  img {
    width: 100% !important;
    height: auto;
  }
}
</style>
